package com.sky.mapper;

import com.sky.annotation.AutoFill;
import com.sky.entity.DishFlavor;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DishFlavorMapper {

    @AutoFill(value = OperationType.INSERT)
    void addFlavors(List<DishFlavor> flavors);

    void deleteByDishId(List<Long> list);

    List<DishFlavor> getByDishId(Long id);
}
